package com.quartz.demo2;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;
import java.util.ResourceBundle;

public class MyCronJob implements Job{

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		ResourceBundle resource = ResourceBundle.getBundle("application");
		String myname = resource.getString("MYNAME");
		System.out.println(myname+" ok "+ LocalDateTime.now());
	}
}
